package com.flyco.modules.sms.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 内购活动
 * @Author: flyco
 * @Date:   2021-02-03
 * @Version: V1.0
 */
@Data
@TableName("sms_inner_buy_goods")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sms_inner_buy_goods对象", description="内购活动")
public class SmsInnerBuyGoods {
    
	/**内购活动单品id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "内购活动单品id")
	private Long id;
	/**商品id*/
    @ApiModelProperty(value = "商品id")
	private Long productId;
	/**商品名称*/
	@Excel(name = "活动名称", width = 35)
	@ApiModelProperty(value = "商品名称")
	private String name;
	/**货号*/
	@Excel(name = "货号", width = 15)
    @ApiModelProperty(value = "货号")
	private String productSn;
	/**内购价格*/
	@Excel(name = "内购价格", width = 15)
    @ApiModelProperty(value = "内购价格")
	private java.math.BigDecimal innerBuyPrice;
	/**内购总数量*/
	@Excel(name = "内购总数量", width = 15)
    @ApiModelProperty(value = "内购总数量")
	private Integer innerBuyCount;
	/**每人可购买数量*/
    @ApiModelProperty(value = "每人可购买数量")
	private Integer innerBuyLimit;
	/**已被购买数量*/
    @ApiModelProperty(value = "已被购买数量")
	private Integer lockCount;
	/**开启状态*/
	@Excel(name = "开启状态", width = 15,dicCode = "yn")
    @ApiModelProperty(value = "开启状态")
	private Integer status;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
	private Integer sort;
	/**删除状态：0->未删除；1->已删除*/
    @ApiModelProperty(value = "删除状态：0->未删除；1->已删除")
	@TableLogic
	private Integer cancelFlag;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
